package fair.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 请求的记录
 * </p>
 *
 * @author fair
 * @since 2021-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("record")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("service_method")
    private String serviceMethod;

    @TableField("request_method")
    private String requestMethod;

    @TableField("path")
    private String path;

    @TableField("header")
    private String header;

    @TableField("query")
    private String query;

    @TableField("body")
    private String body;

    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @TableField("request_ip")
    private String requestIp;

    @TableField("nginx_ip")
    private String nginxIp;

    @TableField("user_name")
    private String userName;

    @TableField("result")
    private String result;

}
